<?php
namespace app\api\model;
class AnnouncementModel extends BaseModel
{
	protected $table = "xst_announcement";
    protected $rule = [
        'id' => '',
    ];
    protected $msg = [
        'id' => '',
    ];
	//公告显示
	public function index()
    {
        return $this->order('createtime desc')->select();
    }
	//公告详情查看
	public function getOneId($id)
    {
        return $this->where('id',$id)->find();
    }
	//关于我们显示
	public function aboutindex (){
		return Db::name('about')->order('createtime desc')->find();
	}
}